package hut.ai.team.mgr;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.g2d.ParticleEffect;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;

public class ParticalMrg {
    private ParticleEffect effect;
    public ParticalMrg() {
        effect = new ParticleEffect();
        effect.load(Gdx.files.internal("particle/stars.p"), Gdx.files.internal("particle"));
    }

    public void startParticle(float x, float y) {
        effect.setPosition(x, y);
        effect.getEmitters().get(0).start();
    }
    public void draw(SpriteBatch batch){
        effect.draw(batch, Gdx.graphics.getDeltaTime());
    }
}
